package com.william.taskrobot.service.Rule;

import cn.hutool.core.util.ReUtil;
import lombok.Data;
import org.springframework.stereotype.Service;

/**
 * RegexRule class
 * 正则规则，必须匹配指定的正则表达式，才能通过验证
 * @author william
 * @date 2021/1/14
 */
@Service
public class RegexRuleService {
    public boolean match(String regex,String content){
       return ReUtil.isMatch(regex,content);
    }
}
